<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Index extends CI_Controller {
	public function __construct(){			
		parent::__construct();
		if(!isset($_SESSION["isadmin"]) || !$_SESSION["isadmin"]){
			header("location:/index.php?c=login");
		}
	}
	/**
	 * @todo index
	 */
	public function index()
	{		
		$this->load->view("index_index");	
	}

	public function top(){
		$this->load->view("index_top");
	}
	public function menu(){
		$this->load->view("index_menu");
	}
	public function main(){		
		$this->load->view("header");
                $data['adminName'] = $_SESSION['adminname'];
		$this->load->view("index_main",$data);
		$this->load->view("footer");
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/welcome.php */